<template>
<div>
    <div class="block">
    <span class="demonstration">默认 click 触发子菜单</span>
    <el-cascader
        v-model="value"
        :options="children"
        :show-all-levels="false"
        @change="handleChange"></el-cascader>
    </div>
</div>
</template>
<script>
import { listCustomerInfo} from "@/api/report/component/componentDeptUserCascader";

export default {
    name:"customer_address_book",
    data() {
        return {
            children:[]
        }
    },
    created() {
        this.getList();
    },
    methods: {
        getList(){
            listCustomerInfo().then( response => {
                this.children = response.data;
                this.total = response.total;
            });
        },
        handleChange(value){
            console.log(value)
        }
    }

};

</script>
<style>
</style>
